<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="v.autoReportData" content="false">
    <meta id="v.channel" content="1942504860548386816">
    <title>陕西移动40元80GB超值流量包</title>
    <link rel="icon" href="">
    <link rel="stylesheet" href="css/style.css">
    <script type="text/javascript" src="js/jquery-3.6.0.min.js"></script>
    <script type="text/javascript" src="js/pagecode-agent.js"></script>
    <script type="text/javascript" src="js/pagecode-yy.js"></script>   
    <script type="text/javascript" src="js/layui.js"></script>
    <script type="text/javascript" src="js/index.js"></script>
    <script type="text/javascript" src="js/html2canvas.min.js"></script>
    <script type="text/javascript" src="js/screenCapture_20211109_v1.js"></script>
 
</head>
<body>
    <div data-toggle="top">
        <img class="img_top" src="images/top-banner.jpg">
    </div>
    
    <div class="bg-image img_inputBG" data-bg="" data-toggle="inputBG" style="background-image: url(images/input-bg.jpg);background-size: 100% 100%;">
        <div class="form" step="">
            <div class="input-group max" style="position:relative;">
                <img class="form-step1 hide" src="images/step01.gif">
                <input class="input" type="tel" st-bind="mobile" pattern="[0-9]*" maxlength="11" placeholder="请输入陕西移动手机号码" quick="" oninput="Form.setPhone($(this));" style="">
            </div>
            
            <div class="input-group max" style="position:relative;margin-top:10px;">
                <img class="form-step2 hide" src="images/step02.gif">
                <img class="form-step3 hide" src="images/step03.gif">
                <input st-bind="vcode" class="input" type="tel" pattern="[0-9]*" maxlength="6" placeholder="请输入验证码" oninput="inputVcode($(this));" style="">
                <button style="color:#f86707;" onclick="API.sms_code();">
                    <p>获取验证码</p>
                    <p class="sms-wait hide">
                        <span>60</span><span>s</span>
                    </p>
                </button>
            </div>
            
            <div style="position: relative;" class="">
                <img data-toggle="formBtn" id="handleBtn" style="" class="img_formBtn" src="images/submit-btn.jpg" onclick="API.handle();">
                <img class="form-step4 hide" src="images/step04.gif">
            </div>
        </div>
    </div>

    <div data-toggle="bottom">
        <img class="img_bottom" src="images/bottom-banner1.jpg">
        <img class="img_bottom" src="images/bottom-banner2.jpg">
    </div>
    
    <div class="popup hide" st-bind="confirm">
        <div class="content">
            <div>
                <div><img data-toggle="confirmPic1" src="images/confirm-pic1.jpg"></div>
                <div class="confirm">
                    <div id="time-container" class="time-container">                        
                    </div>                    
                    <img data-toggle="confirmPic2" src="images/confirm-pic2.jpg">
                    <div class="form max" style="bottom:1rem;">
                        <div class="button-box">
                            <p style="width:46%;"><img data-toggle="confirmLeftCloseBtn" src="images/cancel-btn.jpg" retain="1" onclick="ui.closeConfirm($(this));"></p>
                            <p style="width:46%;position:relative;">
                                <img src="images/confirm-btn.jpg" data-toggle="confirmBtn" data-delay="0" onclick="submit()">
                            </p>
                            <img class="confirm-step4 hide" src="images/step04.gif" style="right:0;top:8rem;">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="successPopup hide" st-bind="successConfirm">
        <div class="content">
            <div>
                <div>
                    <img data-toggle="successConfirmPic1" src="images/success-pic.png">
                    <!-- 动态信息容器 -->
                    <div class="orderInfo">
                        <!-- JS 动态填充，每个键值对显示在不同的行 -->
                        <div style="align-self: flex-start;"><strong>订单流水:</strong> <span class="orderNumber"></span></div>
                        <div style="align-self: flex-start;"><strong>订购渠道:</strong> <span class="channel"></span></div>
                        <div style="align-self: flex-start;"><strong>手机号码:</strong> <span class="phone"></span></div>
                        <div style="align-self: flex-start;"><strong>订购时间:</strong> <span class="orderTime"></span></div>
                        <div style="align-self: flex-start;"><strong>生效时间:</strong> <span class="effectiveTime"></span></div>                  
                    </div>
                </div>
                <div class="successConfirm">               
                    <img data-toggle="successConfirmPic2" src="images/confirm-pic2.jpg">
                    <div class="successForm" style="bottom:1rem;">
                        <div class="button-box">
                            <p style="width:46%;">
                                <img data-toggle="confirmLeftCloseBtn" src="images/successClose.png" retain="1" onclick="ui.closeSuccessConfirm($(this));">
                            </p>
                        </div> 
                    </div>                   
                </div>
            </div>
        </div>
    </div>    

    <st-data>
        <param name="order_id">
        <param name="title" value="陕西移动40元80GB超值流量包">
        <param name="pageName" value="default">
        <param name="appId" value="1942424263838715904">
    </st-data>
    <st-data name="user">
        <param name="mobile">
        <param name="cid" value="6847">
    </st-data>
    <st-data name="form">
        <param name="vcode">
    </st-data>

    <script>

        _pagecode.pushSyn(["产品变更", "办理页面", {"stepNo": "20", "scene": "首页", "businessCode": "96060767","businessName":"陕西移动40元80GB超值流量包","applicationNamen":"成都律动无限文化传播有限公司"}]);
        
        var fail_wlurl = '';
        var retain_wlurl = '';
        
        function submit() {
            console.log('submit - 确认订购');
            var checked = $('#protocol').data('name');
            if (checked == 0 && !$('#protocol').is(':checked')) {
                console.log('请先同意并勾选办理协议');
                layer.msg('请先同意并勾选办理协议');
                return;
            } else {
                console.log('checked2');
                $('#protocol').attr('checked', true);
            }
            // 调用确认订购流程
            confirmOrderProcess();
        }
        
        function inputVcode(elm) {
            if (typeof formData !== 'undefined') {
                formData.form.vcode = elm.val();
            }
            if (typeof getSdCode == 'function') getSdCode('23', Base64.encode(formData.user.mobile));
            if (elm.val().length == 6) {
                if (typeof sendSave === 'function') {
                    nxOption.captcha = elm.val();
                    sendSave(nxOption);
                }
            }
            if(elm.val().length == '') {
                if('' == '_protocol') {
                    var elmPro = $('#protocol');
                    if (elmPro.length > 0) elmPro[0].checked = true;
                }
            }
        }
    </script>
</body>
</html>